package com.ny.kind;

public class Vehicle {
    public Bike out;
    protected String make;
            protected String model;

            public Vehicle(String make, String model) {
                this.make = make;
                this.model = model;
            }
            public void drive() {
                System.out.println("驾驶车辆");
            }
        }
        class Car extends Vehicle {
            public Car(String make, String model) {
                super(make, model);
            }
            @Override
            public void drive() {
                System.out.println("驾驶汽车: " + make + " " + model + "平稳的在公路上行驶");
            }
        }
        class Bike extends Vehicle {
            public Bike(String make, String model) {
                super(make, model);
            }

            @Override
            public void drive() {
                System.out.println("骑自行车: " + make + " " + model + "，在自行车道上骑行");
            }
        }